package com.pda.yuanjing.pages.syzs;

import com.pda.yuanjing.beanout.CodeSYZSBeanOut;
import com.public_module.basemvp.present.BasePresenter;

public class PagePresent extends BasePresenter<PageModel, PageView> implements PageModel.CallBack {
    public void query(String code) {
        view.showProgress();
        model.query( code,this);
    }

    public void mod(CodeSYZSBeanOut codeSYZSBeanOut) {
        view.showProgress();
        model.mod( codeSYZSBeanOut,this);
    }

    @Override
    public void ontip(String str) {
        if(view==null){
            return;
        }
        view.hideProgress();
        view.tip(str);
    }

    @Override
    public void ontipS(CodeSYZSBeanOut codeSYZSBeanOut) {
        if(view==null){
            return;
        }
        view.hideProgress();
        view.tipS(codeSYZSBeanOut);
    }
}


